package main

import (
	"hezj.com/dd/module/common/param"
	"hezj.com/dd/module/domain"
	"hezj.com/dd/module/common/utils"
)

func main() {
	param.LoadParam()
	httpDo()
}

func httpDo() {
	for index := range param.GetParam().Users {
		if index+1 < len(param.GetParam().Users) {
			utils.GoFunc(func() {
				ddma := &domain.DDma{User: param.GetParam().Users[index]}
				ddma.ClickLoop()
			})
		} else {
			ddma := &domain.DDma{User: param.GetParam().Users[index]}
			ddma.ClickLoop()
		}
	}
}
